//
//  const.swift
//  Little_Day
//
//  Created by laichunhui on 15/9/23.
//  Copyright © 2015年 lch. All rights reserved.
//  全局公用属性

import UIKit
/// 切换主窗口根控制器通知
let SwitchRootViewControllerNotification = "SwitchRootViewControllerNotification"

let NavigationH: CGFloat = 64
let ScreenWidth: CGFloat = UIScreen.mainScreen().bounds.size.width
let ScreenHeight: CGFloat = UIScreen.mainScreen().bounds.size.height
let ScreenBounds: CGRect = UIScreen.mainScreen().bounds

//登录条高度
let LoginBarH:CGFloat = 49

///  APP导航条barButtonItem文字大小
let NavItemFont: UIFont = UIFont.systemFontOfSize(16)
///  APP导航条titleFont文字大小
let NavTitleFont: UIFont = UIFont.systemFontOfSize(18)
/// ViewController的背景颜色
let GlobalBackgroundColor: UIColor = UIColor.colorWith(235, green: 235, blue: 235, alpha: 1)
/// webView的背景颜色
let WebViewBacagroundColor: UIColor = UIColor.colorWith(245, green: 245, blue: 245, alpha: 1)

/// 友盟分享的APP key
let UMSharedAPPKey: String = "5608de9de0f55afaae0018e6"
/// 自定义分享view的高度
let ShareViewHeight: CGFloat = 215
let GitHubURL: String = "https://github.com/ZhongTaoTian"
let JianShuURL: String = "http://www.jianshu.com/users/5fe7513c7a57/latest_articles"
/// cache文件路径
let cachesPath: String = NSSearchPathForDirectoriesInDomains(.CachesDirectory, .UserDomainMask, true).last!
/// UIApplication.sharedApplication()
let appShare = UIApplication.sharedApplication()
let sinaURL = "http://weibo.com/u/5622363113/home?topnav=1&wvr=6"
/// 高德地图KEY
let GaoDeAPPKey = "2e6b9f0a88b4a79366a13ce1ee9688b8"

/* 微博请求网址 */
/// 获取当前登录用户及其所关注用户的最新微博
let SinaHome_timeline_URL = "https://api.weibo.com/2/statuses/home_timeline.json"
/// 根据用户ID获取用户信息
let SinaUserInfo_URL = "https://api.weibo.com/2/users/show.json"
/// 获取当前登录用户的收藏列表
let SinaUserFavorites_URL = "https://api.weibo.com/2/favorites.json"
/// 获取某个用户最新发表的微博列表
let SinaUser_timeline_URL = "https://api.weibo.com/2/statuses/user_timeline.json"


/// 原创微博的可重用标示符
let WBHomeNormalCellID = "WBHomeNormalCellID"
/// 转发微博的可重用标示符
let WBHomeRetweetedCellID = "WBHomeRetweetedCellID"

/// 微博cell的边距
let BlogCellMargin:CGFloat = 10.0

//知乎的各种网址
/// http://news-at.zhihu.com/api/4/start-image/1080*1776
let LAUNCH_IMAGE_URL="http://news-at.zhihu.com/api/4/start-image/1080*1776"
let LATEST_NEWS_URL="http://news-at.zhihu.com/api/4/news/latest"
let SOMEDAY_NEWS_URL = "http://news.at.zhihu.com/api/4/news/before/"
let NEWS_DETAIL_URL = "http://news-at.zhihu.com/api/4/news/"
let NEWS_EXTRA_URL = "http://news-at.zhihu.com/api/4/story-extra/"
let COMMENTS_URL = "http://news-at.zhihu.com/api/4/story/"
let RECOMMENDERS_URL = "http://news-at.zhihu.com/api/4/story/"
let PEOPLE_URL = "http://www.zhihu.com/people/"
